package com.aspose.cells;

class zccp extends zcdb {
   zccp(PageSetup var1, String var2) throws Exception {
      this.d = 478;
      this.c = new byte[38 + (var2 == null ? 0 : var2.length() * 2)];
      int var3 = 0;
      if (var1.e()) {
         if (var1.getOrientation() == 0) {
            var3 |= 2;
         }

         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c()), 0, this.c, 0, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getZoom()), 0, this.c, 4, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.f()), 0, this.c, 8, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.g()), 0, this.c, 12, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getPrintCopies()), 0, this.c, 16, 4);
      } else {
         var3 |= 4;
      }

      if (!var1.isAutoFirstPageNumber()) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getFirstPageNumber()), 0, this.c, 20, 4);
         var3 |= 128;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getFitToPagesWide()), 0, this.c, 24, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getFitToPagesTall()), 0, this.c, 28, 4);
      if (var1.getOrder() == 1) {
         var3 |= 1;
      }

      if (var1.getBlackAndWhite()) {
         var3 |= 8;
      }

      if (var1.getPrintDraft()) {
         var3 |= 16;
      }

      if (var1.getPrintComments() != 1) {
         var3 |= 32;
         if (var1.getPrintComments() == 2) {
            var3 |= 256;
         }
      }

      switch(var1.getPrintErrors()) {
      case 0:
         var3 |= 256;
         break;
      case 1:
         var3 |= 512;
      case 2:
      default:
         break;
      case 3:
         var3 |= 768;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, 32, 2);
      zcch.a(this.c, 34, var2);
   }
}
